﻿using System;
using System.Collections.Generic;
using System.Text;
using Shanfree.Framework.Utility;

namespace Shanfree.SharpMovie.Model
{
    /// <summary>
    /// 下载链接
    /// </summary>
    [Persistence(IsPrimaryKey = false, ColumnName = "DownloadLink", ExtendName = "V_DownloadLink")]
    public class DownloadLinkInfo
    {
        string _id = string.Empty;
        /// <summary>
        /// 主键
        /// </summary>
        [Persistence(IsPrimaryKey = true, ColumnName = "ID")]
        public string ID
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }

		private string _uri;
		/// <summary>
		/// 下载地址
		/// </summary>
		[Persistence(IsPrimaryKey=false, ColumnName = "Uri")]
		public string Uri
		{
			set
			{
				 _uri = value;
			}
			get
			{
				return _uri;
			}
		}

        string _remark = string.Empty;
        /// <summary>
        /// 备注
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "Remark")]
        public string Remark
        {
            get
            {
                return _remark;
            }
            set
            {
                _remark = value;
            }
        }

        string _movieID = string.Empty;
        /// <summary>
        /// 关联的电影主键
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "MovieID")]
        public string MovieID
        {
            get
            {
                return _movieID;
            }
            set
            {
                _movieID = value;
            }
        }

        string _userID = string.Empty;
        /// <summary>
        /// 关联的电影主键
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "UserID")]
        public string UserID
        {
            get
            {
                return _userID;
            }
            set
            {
                _userID = value;
            }
        }


        string _userName = string.Empty;
        /// <summary>
        /// 关联的电影主键
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "UserName", IsExtend = true)]
        public string UserName
        {
            get
            {
                return _userName;
            }
            set
            {
                _userName = value;
            }
        }

        DateTime _createTime = DateTime.Now;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "CreateTime")]
        public DateTime CreateTime
        {
            get
            {
                return _createTime;
            }
            set
            {
                _createTime = value;
            }
        }//CreateTime


    }
}
